package com.tingyuge.io.sqlSession;

import java.util.List;

/**
 * @author xiaodao
 * @version 1.0
 * @date 2021/6/6
 */
public interface SqlSession {

    // query all
    <E> List<E> selectList(String statementId, Object... params) throws Exception;

    //query one
    <T> T selectOne(String statementId, Object... params) throws Exception;


    //为 Dao接口生成代理方法

    <T> T getMapper(Class<?> mapperClass);
}
